/**
 * 
 */
package org.vsg.stock.core.indicator.kline;

import java.util.Comparator;

/**
 * @author Bill Vison
 *
 */
class DegreesCPComparator implements Comparator {

	@Override
	public int compare(Object arg0, Object arg1) {
		DegreesCoordinatePoint argDcp0 = (DegreesCoordinatePoint)arg0;
		DegreesCoordinatePoint argDcp1 = (DegreesCoordinatePoint)arg1;
		
		double degrees0 = argDcp0.getDegrees();
		double degrees1 = argDcp1.getDegrees();

		
		if (degrees0 > degrees1) {
			return 1;
		}
		else if (degrees0 < degrees1) {
			return -1;
		}
		return 0;
	}	
	
}
